package spring.lottery.controller.param;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import javax.xml.stream.XMLEventWriter;
import java.math.BigDecimal;

@Data
@NotNull(message = "活动描述不能为空")
public class CreatePrizeParam {
    @NotNull(message = "奖品名字不能为空")
    String prizeName;

    String description;

    @NotNull(message = "奖品价格不能为空")
    BigDecimal price;

    String imageUrl;

}
